<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/xhtml;charset=utf-8" http-equiv="Content-Type"/>
<meta content="IE=9" http-equiv="X-UA-Compatible"/>
<meta content="Doxygen 1.8.13" name="generator"/>
<title>OpenCV: cv::cuda::Event Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script src="../../jquery.js" type="text/javascript"></script>
<script src="../../dynsections.js" type="text/javascript"></script>
<script src="../../tutorial-utils.js" type="text/javascript"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script src="../../search/searchdata.js" type="text/javascript"></script>
<script src="../../search/search.js" type="text/javascript"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" type="text/javascript"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellpadding="0" cellspacing="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
    <span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script src="../../menudata.js" type="text/javascript"></script>
<script src="../../menu.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow" onkeydown="return searchBox.OnSearchSelectKey(event)" onmouseout="return searchBox.OnSearchSelectHide()" onmouseover="return searchBox.OnSearchSelectShow()">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe frameborder="0" id="MSearchResults" name="MSearchResults" src="javascript:void(0)">
</iframe>
</div>
<div class="navpath" id="nav-path">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../d1/d1a/namespacecv_1_1cuda.html">cuda</a></li><li class="navelem"><a class="el" href="../../d5/d38/classcv_1_1cuda_1_1Event.html">Event</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> |
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pub-static-methods">Static Public Member Functions</a> |
<a href="#friends">Friends</a> |
<a href="../../d8/db0/classcv_1_1cuda_1_1Event-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::cuda::Event Class Reference<div class="ingroups"><a class="el" href="../../d1/d1e/group__cuda.html">CUDA-accelerated Computer Vision</a> » <a class="el" href="../../d7/d05/group__cudacore.html">Core part</a> » <a class="el" href="../../d9/d41/group__cudacore__struct.html">Data Structures</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;opencv2/core/cuda.hpp&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:aa912544338415c5f8c8e55e85a139bfb"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d38/classcv_1_1cuda_1_1Event.html#aa912544338415c5f8c8e55e85a139bfb">CreateFlags</a> { <br/>
  <a class="el" href="../../d5/d38/classcv_1_1cuda_1_1Event.html#aa912544338415c5f8c8e55e85a139bfbadc617558c0a38a21d08622aba3ea6ab3">DEFAULT</a> = 0x00, 
<br/>
  <a class="el" href="../../d5/d38/classcv_1_1cuda_1_1Event.html#aa912544338415c5f8c8e55e85a139bfba630dfc7cde70804f12bd1efd04e30ebe">BLOCKING_SYNC</a> = 0x01, 
<br/>
  <a class="el" href="../../d5/d38/classcv_1_1cuda_1_1Event.html#aa912544338415c5f8c8e55e85a139bfba4f52a0e153b5d1ae7eab089d8eb9c379">DISABLE_TIMING</a> = 0x02, 
<br/>
  <a class="el" href="../../d5/d38/classcv_1_1cuda_1_1Event.html#aa912544338415c5f8c8e55e85a139bfbacf33d3d39ba006045591a2b297fb8c8b">INTERPROCESS</a> = 0x04
<br/>
 }</td></tr>
<tr class="separator:aa912544338415c5f8c8e55e85a139bfb"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a88b24ea26be108a2974abe6705d2a56e"><td align="right" class="memItemLeft" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d38/classcv_1_1cuda_1_1Event.html#a88b24ea26be108a2974abe6705d2a56e">Event</a> (<a class="el" href="../../d5/d38/classcv_1_1cuda_1_1Event.html#aa912544338415c5f8c8e55e85a139bfb">Event::CreateFlags</a> flags=Event::CreateFlags::DEFAULT)</td></tr>
<tr class="separator:a88b24ea26be108a2974abe6705d2a56e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa4cff2204d3bd883376e87885d7b8287"><td align="right" class="memItemLeft" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d38/classcv_1_1cuda_1_1Event.html#aa4cff2204d3bd883376e87885d7b8287">queryIfComplete</a> () const</td></tr>
<tr class="memdesc:aa4cff2204d3bd883376e87885d7b8287"><td class="mdescLeft"> </td><td class="mdescRight">queries an event's status  <a href="#aa4cff2204d3bd883376e87885d7b8287">More...</a><br/></td></tr>
<tr class="separator:aa4cff2204d3bd883376e87885d7b8287"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a81021ecb82ef875935c20f74f053d5c3"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d38/classcv_1_1cuda_1_1Event.html#a81021ecb82ef875935c20f74f053d5c3">record</a> (<a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html">Stream</a> &amp;stream=<a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html#a680af5adfeeb1cdaa5b7b13f680c0131">Stream::Null</a>())</td></tr>
<tr class="memdesc:a81021ecb82ef875935c20f74f053d5c3"><td class="mdescLeft"> </td><td class="mdescRight">records an event  <a href="#a81021ecb82ef875935c20f74f053d5c3">More...</a><br/></td></tr>
<tr class="separator:a81021ecb82ef875935c20f74f053d5c3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa57a4f5827c54710436c895c1346ce0d"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d38/classcv_1_1cuda_1_1Event.html#aa57a4f5827c54710436c895c1346ce0d">waitForCompletion</a> ()</td></tr>
<tr class="memdesc:aa57a4f5827c54710436c895c1346ce0d"><td class="mdescLeft"> </td><td class="mdescRight">waits for an event to complete  <a href="#aa57a4f5827c54710436c895c1346ce0d">More...</a><br/></td></tr>
<tr class="separator:aa57a4f5827c54710436c895c1346ce0d"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a871ed8b4c5f721f4898e3c407d781a2c"><td align="right" class="memItemLeft" valign="top">static float </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d38/classcv_1_1cuda_1_1Event.html#a871ed8b4c5f721f4898e3c407d781a2c">elapsedTime</a> (const <a class="el" href="../../d5/d38/classcv_1_1cuda_1_1Event.html">Event</a> &amp;start, const <a class="el" href="../../d5/d38/classcv_1_1cuda_1_1Event.html">Event</a> &amp;end)</td></tr>
<tr class="memdesc:a871ed8b4c5f721f4898e3c407d781a2c"><td class="mdescLeft"> </td><td class="mdescRight">computes the elapsed time between events  <a href="#a871ed8b4c5f721f4898e3c407d781a2c">More...</a><br/></td></tr>
<tr class="separator:a871ed8b4c5f721f4898e3c407d781a2c"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:aa2076bfa2bf524ce953940722f01f158"><td align="right" class="memItemLeft" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d38/classcv_1_1cuda_1_1Event.html#aa2076bfa2bf524ce953940722f01f158">EventAccessor</a></td></tr>
<tr class="separator:aa2076bfa2bf524ce953940722f01f158"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="aa912544338415c5f8c8e55e85a139bfb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa912544338415c5f8c8e55e85a139bfb">◆ </a></span>CreateFlags</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../d5/d38/classcv_1_1cuda_1_1Event.html#aa912544338415c5f8c8e55e85a139bfb">cv::cuda::Event::CreateFlags</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="aa912544338415c5f8c8e55e85a139bfbadc617558c0a38a21d08622aba3ea6ab3"></a>DEFAULT </td><td class="fielddoc"><p>Default event flag </p>
</td></tr>
<tr><td class="fieldname"><a id="aa912544338415c5f8c8e55e85a139bfba630dfc7cde70804f12bd1efd04e30ebe"></a>BLOCKING_SYNC </td><td class="fielddoc"><p><a class="el" href="../../d5/d38/classcv_1_1cuda_1_1Event.html">Event</a> uses blocking synchronization </p>
</td></tr>
<tr><td class="fieldname"><a id="aa912544338415c5f8c8e55e85a139bfba4f52a0e153b5d1ae7eab089d8eb9c379"></a>DISABLE_TIMING </td><td class="fielddoc"><p><a class="el" href="../../d5/d38/classcv_1_1cuda_1_1Event.html">Event</a> will not record timing data </p>
</td></tr>
<tr><td class="fieldname"><a id="aa912544338415c5f8c8e55e85a139bfbacf33d3d39ba006045591a2b297fb8c8b"></a>INTERPROCESS </td><td class="fielddoc"><p><a class="el" href="../../d5/d38/classcv_1_1cuda_1_1Event.html">Event</a> is suitable for interprocess use. DisableTiming must be set </p>
</td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a88b24ea26be108a2974abe6705d2a56e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a88b24ea26be108a2974abe6705d2a56e">◆ </a></span>Event()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">cv::cuda::Event::Event </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d5/d38/classcv_1_1cuda_1_1Event.html#aa912544338415c5f8c8e55e85a139bfb">Event::CreateFlags</a> </td>
          <td class="paramname"><em>flags</em> = <code>Event::CreateFlags::DEFAULT</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>&lt;cuda_Event object&gt;</td><td>=</td><td>cv.cuda_Event(</td><td class="paramname">[, flags]</td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a871ed8b4c5f721f4898e3c407d781a2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a871ed8b4c5f721f4898e3c407d781a2c">◆ </a></span>elapsedTime()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static float cv::cuda::Event::elapsedTime </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d5/d38/classcv_1_1cuda_1_1Event.html">Event</a> &amp; </td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../d5/d38/classcv_1_1cuda_1_1Event.html">Event</a> &amp; </td>
          <td class="paramname"><em>end</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.cuda.Event_elapsedTime(</td><td class="paramname">start, end</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>computes the elapsed time between events </p>
</div>
</div>
<a id="aa4cff2204d3bd883376e87885d7b8287"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa4cff2204d3bd883376e87885d7b8287">◆ </a></span>queryIfComplete()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool cv::cuda::Event::queryIfComplete </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.cuda_Event.queryIfComplete(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p>queries an event's status </p>
</div>
</div>
<a id="a81021ecb82ef875935c20f74f053d5c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a81021ecb82ef875935c20f74f053d5c3">◆ </a></span>record()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::cuda::Event::record </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html">Stream</a> &amp; </td>
          <td class="paramname"><em>stream</em> = <code><a class="el" href="../../d9/df3/classcv_1_1cuda_1_1Stream.html#a680af5adfeeb1cdaa5b7b13f680c0131">Stream::Null</a>()</code></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.cuda_Event.record(</td><td class="paramname">[, stream]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>records an event </p>
</div>
</div>
<a id="aa57a4f5827c54710436c895c1346ce0d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa57a4f5827c54710436c895c1346ce0d">◆ </a></span>waitForCompletion()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::cuda::Event::waitForCompletion </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.cuda_Event.waitForCompletion(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p>waits for an event to complete </p>
</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a id="aa2076bfa2bf524ce953940722f01f158"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa2076bfa2bf524ce953940722f01f158">◆ </a></span>EventAccessor</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">friend struct <a class="el" href="../../da/d71/structcv_1_1cuda_1_1EventAccessor.html">EventAccessor</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/core/<a class="el" href="../../d8/dd1/modules_2core_2include_2opencv2_2core_2cuda_8hpp.html">cuda.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:44 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img alt="doxygen" class="footer" src="../../doxygen.png"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
